import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server:{
    open:true,
    port:3000,
    host:"localhost"
  },
  resolve:{
    alias:{//引入模块或组件的时候 前面省略路径 用@代替
      "@":path.resolve(__dirname,"./src"),
      "@com":path.resolve(__dirname,"./src/components"),
      "@view":"./src/views"
    }
  }
})
